package com.example.boot3.service.Impl;

import com.example.boot3.mapper.UserMapper;
import com.example.boot3.model.User;
import com.example.boot3.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author 邹成明
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User findUser(Integer user_id) {
        User result = userMapper.findUser(user_id);
        return result;
    }

    @Override
    public Integer upLoadAvatar(String url,String user_id) {
        return userMapper.upLoadAvatar(url,user_id);
    }

    @Override
    public Integer changePwd(String pwd,String user_id) {
        return userMapper.changePwd(pwd,user_id);
    }
}
